/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package basics.classes;

/**
 *
 * @author peng
 */
public class TestCircle {
    
    public static void main(String args[])
    {
        //Calls the constructor to create a circle object with a radius of 3.
        Circle myCircle=new Circle(3);
        
        //Gets the circumferece of the circle. 
        double circumference = myCircle.getCircumference();
        
        //Gets the area of the circle.
        double area = myCircle.getArea();
        
        System.out.println("A circle with a radius of "+ myCircle.getRadius());
        System.out.println("Circumference="+circumference);
        System.out.println("Area="+area);
    }
    
}
